package itdep.domain.event;

import itdep.domain.education.EducationSemester;

import javax.persistence.*;
import java.util.Date;

/**
 * @author kara (latest modification by kara)
 * @version $Revision: 11 $   $Date: 2010-06-16 10:18:57 +0000 (Wed, 16 Jun 2010) $
 */
@Entity
@DiscriminatorValue(value = "5")
public class ExtendSessionEvent extends StudentEvent {
	@ManyToOne
	@JoinColumn(name = "ID_SEMESTER", nullable = true)
	private EducationSemester educationSemester;

	@Column(name = "EXTEND_SESSION_DATE", nullable = false)
	private Date extendSessionDate;

	public EducationSemester getSemester() {
		return educationSemester;
	}

	public void setSemester(EducationSemester educationSemester) {
		this.educationSemester = educationSemester;
	}

	public Date getExtendSessionDate() {
		return extendSessionDate;
	}

	public void setExtendSessionDate(Date extendSessionDate) {
		this.extendSessionDate = extendSessionDate;
	}
}